package com.hjl.spring6.bean.iocXml.auto.service.serviceImpl;

import com.hjl.spring6.bean.iocXml.auto.dao.UserDao;
import com.hjl.spring6.bean.iocXml.auto.dao.userDaoImpl.UserDaoImpl;
import com.hjl.spring6.bean.iocXml.auto.service.UserService;

/**
 * @author ServivE
 * @version 0.1
 * @className UserService
 * @description
 * @date 2024/8/6 17:23
 * @since jdk11
 */
public class UserServiceImpl implements UserService {
    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void addUserService() {
        userDao.addUserDao();
        System.out.println("user Service方法执行了....");
        /*UserDao userDao = new UserDaoImpl();
        userDao.addUserDao();*/
    }
}
